package com.wei.czz.common.vo.admin.deptRole;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-04-29 14:10:50
 * className: DeptRoleVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class DeptRoleVo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 部门主键
     */
    @NotNull(message = "部门主键不能为空", groups = { Save.class, Update.class })
    private Long deptId;

    /**
     * 角色主键
     */
    @NotNull(message = "角色主键不能为空", groups = { Save.class, Update.class })
    private Long roleId;

    /**
     * 使用范围[0-本部门 1所有子部门]
     */
    @NotNull(message = "使用范围不能为空", groups = { Save.class, Update.class })
    private Integer useRange;

    /**
     * 是否领导专属[0-是 1-否]
     */
    @NotNull(message = "是否领导专属不能为空", groups = { Save.class, Update.class })
    private Integer useLeader;

}
